#include <iostream>

#include <learn/gl/gl_context.h>

using namespace xi;
using namespace xi::gl;

#define SOURCE_PATH ROOT_SOURCE_PATH "/src/core/context/"

int main()
{
    GL_Context context(0, 800, 600);

    {
        Mesh_Data mesh;
        mesh.read(SOURCE_PATH "rabbit.obj");
        std::shared_ptr<AIS_Mesh> amesh(new AIS_Mesh(mesh));
        context.context()->add_object(amesh);
    }

    return context.message_loop();
}
